package com.itheima.mapper;

import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface MemberMapper {
    /**
     * 根据会员id查询会员信息
     * @param memberId
     * @return
     */
    @Select("select * from member where id = #{memberId}")
    Member selectMemberByMemberId(Integer memberId);

    /**
     * 查询所有会员的日期
     * @return
     */
    @Select("select reg_time from member")
    List<LocalDate> selectAllDateForCount();
}
